var Express = require('express');
var bodyParser = require('body-parser');
var app = Express();
var testController=require('./testController');

app.use(bodyParser.json());

app.get("/", function (req, res) {
  res.sendFile(__dirname + "/index.html");
});

app.post('/api/Upload',testController.dataInput);

app.listen(2000, function (a) {
  console.log("Listening to port 2000");
});